﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class ApplicationConfiguration : EntityConfiguration<Application>
    {
        public ApplicationConfiguration()
        {
            Property(a => a.ContributionID).IsIdentity();
            MapHierarchy(
              a => new

              {
                  a.ContributionID,
                  a.IsOpenSource,
                  a.IsFree,
                  a.UseInstructions
              }
        ).ToTable("Application");
        }
    }
}
